Improve server stop time with event interrupt