Clean up error messaging. Disable export on error. Closes #128.