Removed _initUnloadSynDisconnect
Added synchronize onbeforeunload handler

When this triggers, it calls RTFApi.shutdown