Liquid excluding devices for gas inlet or outlets