Add exit_handler to app