fix closed exits