Handle abort correctly during installation

bnc#893638
similar to line 67