stream.js: disconnect when no response from gateway