Cleanup of exceptions