Added error handler for `.exportData()` method