Rust Keeps Closing Unexpectedly