Single instance support for applications