Adding assertion for invalid eventName in monitor handler