fix bug will keeping server restarting, lots of try - catch