Execute job in a domain and catch uncatched exception to mark job as failed

Execute job in a domain and catch uncatched exception to mark job as failed

Uncatched exception make kue to stop, and make job stuck in unknown statement.

Related to #391