add Timeout middleware to worker