Fix problems:
1. Add exception handle for decoding process;
2. Add auto-reconnect after network closes 3 minutes later.