drilling machine: add try-catch blocks