Fixed open sockets leakage