backend: rename linkshutdown to more appropiate name and use proper method in terminate