Exception handling for terminated instances