error printing after panic