subservers: making subservers eventemitters to deal with closing and passing
subserver into export function of user subserver code to make the env
accessible
websockets: unregisterSubhandler