Any way to hide/disable the 'close' gadget?

BlitzMax Forums/BlitzMax Programming/Any way to hide/disable the 'close' gadget?

If AppTerminated() I think?