RFE#856: Catch ability for MySQL errors during export.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>