* avoid freeze for table print * make failed_with_proper_exit_code work again * add test case for table * fix un-used import on windows