fixed connection pool thread shutdown to work inside OSGi plugin