     files = Enum.filter files, &:filelib.is_regular(&1)
 
     if files != [] do
-      Kernel.ParallelRequire.files(files)
-      :ok
+      wrapper fn -> Kernel.ParallelRequire.files(files) end
     else
       { :error, "-pr : No files matched pattern #{pattern}" }
     end


  defp process_command({:cookie, h}, _config) do
    if Node.alive? do
      Node.set_cookie(binary_to_atom(h))
      :ok
    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
  end

  defp process_command({:app, app}, _config) when is_binary(app) do

    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
