Updated DrawActivity to exit the activity after success.