added "exit on error" code. moved some code into a cleanup function. Improved logging. TODO: break into steps (i.e. debootstrap 1st and 2nd), check if step is already complete, e.g. make possible to continue an errored/incomplete build