Avoid unreachable code - break after exit().

  Changed the exit to return which will do the same job.