put in additional exception handing around trying to pop task off queue and removed some extraneous debig statements
fixed type-o