Add header check to ensure CSV files include a header
Also, added code to signal handler to terminate mongo process after a timeout