Solved critical error in service deregistration