fixed wrong pool close, that not properly clean the connections.