Add check of local shutdown in Local transactions