What happens to the alarm if I close the MEGABOOM app?

Your alarm will still activate as you have it set.