Move retry_options to to_dict

Move retry_options to retry_task_limit code into encode_async_options
instead of in to_task.

Don't name AbortAndRestart exception, just raise it.