Lots of small bug fixes on the workers' side - variable names typos and dealing with the exceptions