fix closed exits again