Configure watchdog period

This patch adds configration item for watchdog period.
Fix NPE when reconnection

Due to this, reconnection was always failure.