Add hook to delete temporary json file on exit