Count disabling and disabled processes as well when applying MaxPoolSize constraints. Partially solves issue #892.