Issue #8: correction

Defining the DISPOSE_ON_CLOSE behavior to correct issue #8