Removed unneeded import
Switched over to unpacking api failure exceptions using the new helper method in apiutil
Send a sensible error message if you cannot get a connection from the connection pool (e.g. if its been drained).  Added warning messages if we fail to commit the transaction and have to rollback