OnClose event not being triggered in web client

I have a single form as a test case. The solution has a global method - onSolutionClose_event()

function onSolutionClose_event()
{
	application.output('onSolutionClose_event');
	return(globals.allowExit);
}

The form has a single button that changes the variable globals.allowExit to true from the initial setting of false.

It works when in the smart client. You cannot exit the solution by pressing the X icon in the top right corner of the solution window.

The solution exits immediately when in the web client and the X icon is pressed.

I have tried this in the developer and on the server with the same results. What would cause the event to not trigger when in the WC?

Servoy: 4.1.5
JRE: 1.6.0_18-b07
Windows XP SP2

Your feedback is appreciated!

See http://wiki.servoy.com/display/DOCS/Web+Client+compatibility+overview

This is expected behavior.

Paul