Merge pull request #4328 from koying/fixcontextcrash

FIX: set logger to NULL when the XBMC::Context is deleted