Limit event handler timeout to 2 seconds