Only allow hook_disconnect to run once