[IMP] auto re-connect when connection closed with some errors
[NEW] new general logger api