use boost intreprocess file lock to lock repository; if application failed, report fatal error to ERS