Change the exit method