Where to put clean up code? - tRPC