implemented reconnecting after 10 minutes inactivity
make reconnect timeout configurable