Unsubscribe user when window unload.