Exception handling for mark4