cleanup spkpi-manual, more error checks