Should specify the leave wait timeout value as stop() argument