Catches and logs exceptions that may occur during stat updates to ensure
that stats failures do not cause data loss or interruption of operations