Removed unreachable exit statements