Handled board disconnection and reconnection

Reformatted code, replaced tab to spaces

Jira issue: WP-1074