How can I ensure that there is only one instance of an application open for user?