Make accept() throw more useful errors