Cleanup and close the context when the channel because inactive.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
ignore jenv junk

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>