Add condition to shutdown on spec