two bugfixes

sockwrap send was possible even if sock was shutted down.
request timeout to media set to 500ms
'room' invocation can happend multiple times on failures.