Fixed return statement in exception