Confirmation when closing with escape

Also a small bugfix in netclient (was reserve instead of resize)