There are plenty of ways for mergers to fall through, but not all are destined for failure. Follow five steps to prevent any last-minute meltdowns.