{"action":"closed","issue":{"url":"https://api.github.com/repos/getlantern/lantern-mobile/issues/6","labels_url":"https://api.github.com/repos/getlantern/lantern-mobile/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/getlantern/lantern-mobile/issues/6/comments","events_url":"https://api.github.com/repos/getlantern/lantern-mobile/issues/6/events","html_url":"https://github.com/getlantern/lantern-mobile/issues/6","id":100710479,"number":6,"title":"Cleaner mechanism for stopping Lantern","user":{"login":"atavism","id":6346213,"avatar_url":"https://avatars.githubusercontent.com/u/6346213?v=3","gravatar_id":"","url":"https://api.github.com/users/atavism","html_url":"https://github.com/atavism","followers_url":"https://api.github.com/users/atavism/followers","following_url":"https://api.github.com/users/atavism/following{/other_user}","gists_url":"https://api.github.com/users/atavism/gists{/gist_id}","starred_url":"https://api.github.com/users/atavism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atavism/subscriptions","organizations_url":"https://api.github.com/users/atavism/orgs","repos_url":"https://api.github.com/users/atavism/repos","events_url":"https://api.github.com/users/atavism/events{/privacy}","received_events_url":"https://api.github.com/users/atavism/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T07:59:37Z","updated_at":"2015-12-11T12:34:57Z","closed_at":"2015-12-11T12:34:57Z","body":"Rather than abruptly exit the Lantern backend when the stop button is pressed, which incidentally triggers a runtime exception in the Android app (though we could catch this possibly, assuming nothing else was affected), we should add a native method that initiates a graceful shutdown that closes all goroutines and performs any necessary clean-up"}}