"sudo service apache2 restart" sometimes fails because apache is trying
to grab a resource that another process is still holding onto.
Stopping apache first and starting it afterwards seems to avoid that race.
Change-Id: I55bfa125246fbf960b100682a3f4698f8c1d7e09