Added redirect to home when closed connection or hit cancel in connection dialog