Fix #231 by adding a confirmation dialog.