added: quit evernote if it wasn't running

I got a bit annoyed about Evernote being opened and in front of everything after leaving my computer for a while. So I added some code check if it's already running, and if it wasn't to close it after the transfer of tasks. It also waits for Evernote to finish a sync.

It's not the nicest implementation code-standard-wise, I'm not really into that, but it works! Maybe someone can refactor it?