[mplex] Add timeout and error handling during stream close