How to handle and avoid uncommitted work pending exception?

Lesson unavailable