Make sure 'end' is emitted even if no connection has ever happened
Merge pull request #589 from marekventur/master

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