A shared printer can be stopped with the shp-kill command. This command executes an sp-kill of the D3 printer and kills the underlying D3 process and the filter.
For example:
shp-kill printer.number