All running containers restart on leader reelection

Hello,
I wanted to ask - is it okay for docker swarm to restart ALL containers in a cluster after leader reelection? I had a leader dropped by network split, and after reelection (which took 20min!) all running containers got restarted. Is it an expected behaviour?

Docker version
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:50:14 2017
OS/Arch: linux/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 06:50:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

Ubuntu 16.04.2 LTS (Xenial Xerus)