preventing spurious 'Response commited' exceptions