Added prompt before closing