added robustness wrapper for data sinks
added robustness wrapper for environment measurer
cleaned up shutdown code