if the pool is draining then aquire can throw so we need to catch this
use mime module to detect/set content types