By using &'static you are telling the compiler that the closure must be an immutable compile time constant, so you can't store a local variable such as initial_state inside it. Use a Box instead.
@RustyYato Thank you, I will read your blog on closures. I am working with the wasm crate right now and am running into many issues regarding closures and lifetime's.