Clean up tmpdirs upon exception, too.