Make sure to kill the fit process when node is about to exit