Connect only to the server if needed + Ignore stream closed error. References #21