handle refused connections