now freeing memory allocated to event handler arguments