change exit to destroy and it seems much more reliable