Avoid double exiting