cleanup flows on connect error; better expiration; WARNING: hardcoded ip