fixed a thread safety issue on connection::status_ flag, added deadline timer to remove the unused connections, changed settings setup of pool class