Ensure prepared statement is finalized when an error occurs.
Trying to track a regression.