Fixed BImport customer loader NullPointerException and added PIDFile and tests.