Fix race condition when connecting to WAMP
Add proper offline support for I/O page