Prevent accidental app closure #1