Allow to gracefully shutdown node from web interface. fixes #717