Clear app if it already exists

Fix #280