made it exit cleanly