add begin/rescue whether lock file exists