Catch exception during imports (#57)