exit() not well used