Prevent crashing on error receiving data
Prevent crashing in liberty recording

when the header is not the expected size