Copying previous comments to changed files as per suggestion from Emily - thanks!
Since message.put_int has to occur, consider
message.put_int(flags[:continue_on_error] ? 1 : 0)
Brandon suggests
message.put_int(!!flags[:continue_on_error] ? 1 : 0)