DataLogger: Handle IO errors more gracefully