Dispose component context when done

Change-Id: Ic691d1a7136bdb02d3c94fee246920697503d5b0