Some cleanup.  Check error codes for all functions that return them.
Some cleanup.  Check error codes for all functions that return them.

thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss,thespooler/nss