Add a function to create a WriteType from a string
Rename Rethrow to Abort
No need to repeat the int there
Implement the retry handling