close interactive loop