exit a little more cleanly