graceful socket death and notification