check ListenAndServe error and open browser automatically