improve file block error handling