Do not accept close events
If a close event is encountered, simply leave it alone if there is no reason to prevent a close. Otherwise, you may reset another algorithm's request to prevent the close event from happening.
If a close event is encountered, simply leave it alone if there is no reason to prevent a close. Otherwise, you may reset another algorithm's request to prevent the close event from happening.