Added prompt before closing.