Fix/importer exception bug

Fix for the importer error. Also added exception trapping for the emails.