catch errors of mongo console execution in a seperate plugin exception