Connect signals so the dock widgets can be re-displayed on close.