@Override
 public void destroy() throws Exception {
   try {
     LOGGER.debug("Deleting pid file");
     pidFile.close();
   } catch (IOException e) {
     throw new RuntimeException(e);
   }
 }
 @Override
 public Class<?> getObjectType() {
   return pidFile.getClass();
 }