Fixed future_state_base exception handling: wait() did block when an exception was already set.