error handling, test cleanup