JQDialogOptions.OnClose not found

Hi
When i have a modal dialog, i have the OnClose connected
Hoewever, when an user clicks the button multiple times which calls this method i get exceptions like
Ajax event "JQDialogOptions.OnClose" not found!
What can i do to make the method called just once.
The click will call a methiod which can take a few seconds, the customer thinks i has not clicked so clicks again
Eric
When i have a modal dialog, i have the OnClose connected
Hoewever, when an user clicks the button multiple times which calls this method i get exceptions like
Ajax event "JQDialogOptions.OnClose" not found!
What can i do to make the method called just once.
The click will call a methiod which can take a few seconds, the customer thinks i has not clicked so clicks again
Eric