Updating the atom with an exception if thrown during then.

Adding better debug output of "describeType".
Adding helper function to update the atom when invoking "then".
Reversing the "then" order