Fixed ImportError exit condition