Allow user to exit loop