Automatically close non-responsive programs