Fixing bug in verifySolution that would crash under certain conditions.

Only one case of this.end() had to be changed, the rest were done to
keep things consistent.
Returing the output from docker in the queue.