Fix automatic stopping of an internal service's application when the application_name service configuration option is used. Add more logging output when a service is stopped.