Close process handle when done