attempts to close xbmc gracefully, then in a background process waits 1 second and if xbmc is still running it will forcefully close it.