catch BaseException