export all frame format constants
provide on_close hook for cleanup
use on_close hook to remove from (broadcast) table
bugfix handle cases, when client closes connection