Access Violation in component destruction