add keywordinterrupt to caught errors