The hard part is justifying why $-1/x$ is the antiderivative you choose.
The problem is that the "constant of integration" only needs to be locally constant: the domain of your functions here include two disjoint intervals, and each one gets its own constant of integration. The complete set of antiderivatives to $1/x^2$ is all of the piecewise defined functions of the form
$$ \begin{cases} -\frac{1}{x} + C & x < 0 \\ -\frac{1}{x} + D & x > 0 \end{cases} $$
where $C$ and $D$ are any constants, and your "forgetting" method results in $-2 + D - C$.
In order to "make sense of this", you need to find some systematic reason to set $C=D$ here. There are surely classes of examples where you can find such a reason, but not in full generality.