I use twonkyserwer - third party application - on my M4 based server. It starts and stops via /etc/init.d, not via systemd.
Twonky uses resources located on NFS mounted filesystems. The problem is that during system shutdown such resources are locked by Twonky and can not be unmounted, so system hangs during shutdown. The solution is to shutdown Twonky first (/etc/init.d/twonkyserver stop) and after that NFS mounts can be clearly unmounted.
How can I change order of shutdown system services, to shutdown Twonky first and than MySQL (used by Twonky) and than dismount NFS resouces?