Usually you should add an exception handling block for SELECT statements, to avoid unexpected exceptions.