/** If true, then pushing cancel is expected, so it won't show a message for it. */
public static boolean isPushingCancelledExpected = false;
public void onModuleLoad() {
// If the user closes the window, it sends a leaving message
Window.addWindowClosingHandler(new ClosingHandler() {
@Override
public void onWindowClosing(ClosingEvent event) {
isPushingCancelledExpected = true;
FreenetRequest.sendRequest(UpdaterConstants.leavingPath, new QueryParameter("requestId", requestId));
cm.closeConnection();