error handling for ListenAndServe