Minor fixes on formatting pull request
Minor: fixed case on shutdown when the pool is null