[engine] Add exit() if get file is not ok, because they need to be canceled