added handler for "timeout"