Print ERROR on failed reads instead of 1st four bytes read, added recover function stubs