Add timeout in receiver so it doesn't hang forever