fixed and added a test for keepalive connection pool forced shutdown