Just not that "smoke alarm" battery. If you must use a 9 V battery (but a bad idea to power UNO or Mega 2560 from "Vin" or the "barrel jack"), use a 6 cell "AA" carrier.
Seriously?