When node constructor or start fails unexpectedly, server socket must be...

... closed to prevent port remain open.

Fixes #3344