Make sure 'end' is emitted even if no connection has ever happened