destroy duplex. Create state