Remove AVSession's inputs and outputs upon dealloc in order to better free up the resource.