Removing messgae from msg cache in case of error.