Remove exit(1); as i'm not sure if it is useful yet.
sm