In testing this, it seems omitting warn_only can lead to breaking out of the program on an error code. This allows us to clean up if that happens