reboot a contaienr only if it is absolutely necessary