Fixed missing argument to recursive scan_directory call
Also, print out exception on bulk writer error