fixed bug for closing the connections with the dedicated Socket and killing the module