Try Red5 Cloud + PubNub!
Power Real-Time Interactivity at Global Scale /

Red5 Documentation

close – Closing a Shared Object

Closing a remote Shared Object instance is as easy as invoking close.

so.off('*', handleSharedObjectEvents)
so.close()

The event delegate is also removed using the off method, since SharedObject is an instance of EventEmitter.