You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: control_panel.rs
    path of file: ./repos/mmb/control_panel
    
    the code of the file until where you have to start completion: use actix_server::ServerHandle;
use anyhow::Result;
use futures::{executor, future::BoxFuture, FutureExt};
use jsonrpc_core_client::{transports::ipc, RpcError};
us
    
    pub(crate) fn stop(self: Arc<Self>) -> Option<oneshot::Receiver<Result<()>>> {
        if let Some(server_stopper_tx) = self.server_stopper_tx.lock().take() {
            if let Err(error) = server_stopper_tx.send(()) {
                log::error!("Unable to send signal to stop actix server: {}", error);
            }
        }

        let work_finished_receiver = self.work_finished_receiver.lock().take();
        work_finished_receiver
    }