Additional error handling during SIGUSR2 stats printing