Oh, sorry. You're already passing the parent. Have it delete itself like the log dialog does when closed.