Added timeout to disconnet because of flaw in mozilla