Making worker catch assertions errors

This is a tiny fix in which throwable is catched, without this assertion errors (like in :pre) cause the work to die silently the background (took me some time to find)