Add error checking on statement reset.