Better handling for maxInactiveTime on dynamic pools