Fix misleading error when exiting the client from the main menu