Clean up, throw error on test failure