#47 Ensure listening socket is closed when -stop returns