Remove alloc and destroy callbacks from the taskprocessor.