Implement decoder drain and reset correctly.