hpsa: use helper routines for finishing commands