Improvements to rage-quit