Prevent multiple connections to one server

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>