add file operation exception handler. Qiu