bugfix: Close the Logging service properly