graceful clean up'