Should this be if (!cleanShutdown) ?

If not, the param name is confusing.