Catch Exception shutdown