exits gracefully