Fix events exception raising when ensuring server. Closes #3515.