refactor main.py and add null object for code clearance
fix #13 retry in 60s after network error when working in daemon mode