eegplot executes user command before deleting figure

In the original version of eegplot, the eegplot figure is deleted
before the user-provided command for the figure button has been
executed. This prevented the user code to access the user data that
is available at the UserData field of the figure handle.