Moving exit() call to another listener.