Move exit command to main project