Added mechanism to detect when the annotation application is already running