Not sure if there is a way. You could add a property to your form say DIM bClose as Boolean = False.
Then instead of calling me.close, call a new method called Me.zclose. Its worth having a custom close method to call through code, to perform any other cleanup code too.
private sub zclose
Me.bClose=True
Me.close
end sub
Sweep
...if it works dont mess with it