updated the restart script to account for shutting down any previously running node processes