On transfer failure, properly set upload status

On a transfer failure, set the cache status to UNCOMMITTED.