Restart Apache by stopping and starting with a pause between

Using "service apache2 restart" sometimes fails (with Apache 2.4,)
saying something like this:

  (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
  (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

Feels a lot like a race between closing the listening socket and
recreating it.