[ui] implemented aggressive reconnection policy (fixes #366)