lib/api: Close server before exiting serve (fixes #5866) (#5895)
lib/api: Close server before exiting serve (fixes #5866) (#5895)


imsodin/syncthing,wweich/syncthing,syncthing/syncthing,AudriusButkevicius/syncthing,syncthing/syncthing,syncthing/syncthing,AudriusButkevicius/syncthing,wweich/syncthing,AudriusButkevicius/syncthing,syncthing/syncthing,imsodin/syncthing,syncthing/syncthing,wweich/syncthing,imsodin/syncthing,AudriusButkevicius/syncthing,wweich/syncthing,imsodin/syncthing,syncthing/syncthing,imsodin/syncthing