fixes warning
pressing escape will now gracefully exit