Added connection check

Added check that plugin can connect to switchking