Add timeout to 'wait' actor