Enforce single instance

Prevent the application from being launched additional times; this is
done to ensure consistency in the data.