better cleanup of ipfs on program exit