reconnecting and closing processes