 
   defp process_command({:cookie, h}, _config) do
     if Node.alive? do
-      Node.set_cookie(binary_to_atom(h))
-      :ok
+      wrapper fn -> Node.set_cookie(binary_to_atom(h)) end
     else
       { :error, "--cookie : Cannot set cookie if the node is not alive (set --name or --sname)" }
     end
   end
 
   defp process_command({:eval, expr}, _config) when is_binary(expr) do
-    Code.eval_string(expr, [])
-    :ok
+    wrapper fn -> Code.eval_string(expr, []) end
   end
 
   defp process_command({:app, app}, _config) when is_binary(app) do

    prune_stacktrace(t)
  end

  defp prune_stacktrace([h|t]) do
    [h|prune_stacktrace(t)]
  end

    files = Enum.filter files, &:filelib.is_regular(&1)

    if files != [] do
      wrapper fn -> Enum.map files, &Code.require_file(&1) end
    else
      { :error, "-r : No files matched pattern #{pattern}" }
    end
