If an error occurs during replay, send proper header before error message
Authored by: lmayes 2012-07-19
Parent: [r1221]
Child: [r1223]