public static void Detach(IMyPistonBase block)
 {
     if (block.IsAttached)
     {
         block.Detach();
     }
 }
 private static void FinalizeAttach(IMyPistonBase block)
 {
     if (!block.IsAttached)
     {
         block.Detach();
     }
 }