This allows for easier writing to the replay output without requiring that {@link IOException} be caught each time.