exit more cleanly