properly close jdbc connection pool in case of stop server