Fixed Bug: Results not written to output file.

The immediate redirect was prematurely cancelling the save request. The attached change ensures that the redirect will happen after the results have been saved.

Test Browser: Chrome 27.0.1453.110
Test OS: Mac OS X Mountain Lion