expose freeProblem outside finaliser