pool leak averted in error case