Attempted fix for incorrect experiment shutdown.