Clear app if it already exists

I haven't tested this yet, however I think this is the proper fix for #280.