Don't catch BaseException, it shows strange things.