Try/Catch for export. readFileAndOpen method

Added try/catch for export to help solve a DataCloneError exception
issue in internet explorer 11.

Added readFileAndOpen helper method so that the worker can directly
read from a file.