Cleanup after running X