Throw on pool connection double-release

fixes #824
fixes #827