[FIX] better check for errors in gmres iterative solver (though it doesn't work in all cases, which is probably a normal thing...)