Add serial close method