Removed the exit() call, which I was using for debugging