changed parameter names from managed to disposing.