fixed flow error in relaywriter setup handling (was blocking indefinitely)