Prevent duplicate connections