Restart network-manager in Ubuntu 14.04

We encountered a network disconnection after when our Ubuntu system went to automatic hibernation. It was not possible to turn on the connection or connect to a network until a restart.
Google told to do this.

sudo service network-manager restart

Done. Now it connects with a network without a system restart.