Secure socket remove.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Add missing timeouts.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Add missing maxWait parameter leading to forever wait.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Use 2 minutes as default timeout.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Increase default wait time.
Check if ready after wait.

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>