Use .communicate() to capture the output of mongoimport, and show it if something goes wrong.