add error logging for ListenAndServe