Prevent multiple instances of the application from running (issue #142)