bug #2144: Execute epilog commands if an attach operation fails