Added ability to send exception to result receiver if upload fails.