Wrote very messy quitReason/QUIT code