Call the quit hook on both local and remote users