Added cudaminer shutdown on script exit