Catch Exception When Closing the Integration Test