Provide access to last state in solver error.