Disconnect events on widget close