Fix a bug on opened status

Opened status should be set to false AFTER the close effect has been apply.

By this way, the overlay is not considered as opened while closing.