Added connection test before toggling comment like