Stop node if it is running when doing a restart