When view is closed during a model event, subsequent model events are still called  #873

This is the test case and a potential solution for Issue #873.