Fixes #88

Don't allow deletion of a pool until all shares in that pool are deleted.