Do not check for handshake if we are already running queries - fixes #80