lib: Implement Transport.close() also in simulator
Use component.io for Emscripten based simulator in browser