Close chan only if it exists !