This allows surrounding IO operations with TRY, making the code much easier to reason about. This also replaces surrounding dbgln_if statements to use "{:hex-dump}" instead of individually writing out bytes.