try to reconnect if connection is closed
v0.0.4