How can I find whether an instance of an application is
already running in order to prevent from opening several
instances at once?