server side checking for duplicate connections (fixes #17) + stubs for server side errors