Set isClosed on close and open.

This is quick fix to enable using modal inside marionette region.
Without isClosed set correctly, modals close function would be called
twice breaking count of opened modals.