Fix Minor issue when closing XBMC

Signed-off-by: Tyler Messa