Terminate problem with closeProblem()