Fixed shutdown when own IP cannot be determined (issue #282)