In this case, would it make sense to properly delete the contents that are locked by stopping adb, instead of eating the exception and continuing with a half-deleted folder? Given that this is to run tests, and clean state and reproducible environment is desired.