Enhance transition logging

If task ended, include endState, if avail
Debug (to be removed)