If you run your notebook via workflow and error happen and there are no retires on job, then job cluster will be terminated immidietly after failure.
You can add python block of try catch and if error occurs , you catch the error and log somewhere before job will be terminated