all these error paths should be deleting the pool and disconnecting too