Correctly removing workdir on exit

as opposed to not cleaning it up