Add code to clear up on process interrupt