Fix an issue that 'addEventListener' always enables timeout

This issue cause 'addEventListener' ALWAYS enable a 10 seconds timeout mechanism. May cause strange behaviors when server try to do a gracefully shutdown.