Reworked logic to create mail first. On failure add mail or lookup document (back) on incoming queue.