only intercept shutdown once
Merge pull request #6 from gosquared/process.once

only intercept shutdown once