The EXIT statements can be used at any point in the code to leave the program. Before exiting all objects allocated are cleaned up.