Server: stop crash if client was connected while server restarted and then makes a new query