Remove reference to main class from async task.