fix #49 (stale price detection) and fix #59 (server disconnection resilience)