Added status checking to start and stop node