Use timeouts to correctly test concurrent code
Improved handling and sending of RST_STREAM frames