Proper clearing of send queue on cancel and proper signaling of print job done when last command gets acknowledged