Something looks weird here, shouldn't the import statements be inside the try block?