log invalid connections and return response