You don't need a method call here, just put
```rb
 terminate_on_shutdown ? "terminate" : nil
```

Btw did you test on instance-stored images?