Call open/close functions of terminal instance before openning channel