refactor ConnectionToGridiaServerHandler