Server: fix missing end event