For the unload modal view close event