If a task sent to another thread raises an exception when the associated task has wait or wait_return called the exception is re-raised in the calling thread so action can be taken
indentation fixed.
Merge branch 'dev'