Handles refused connections