Made it exit cleanly...