Catch exception during imports (#57)
Simplified code