client: better file error handling.