if create_directories fails, I'm strongly in favor of aborting the simulation in the first place (because there's no point in spending time on a simulation which does not do what you want, namely writing output to a given directory). As far as I'm aware, the create_directories function throws an exception in this case and everything is aborted, so we're fine...