added check if contract got deleted to eventmasseges