Altered errorhandling and notification when exporting.