Since the quest-lines 'Thieves Guild' and 'Dark Brotherhood' both deal with a lot of law-breaking business, including breaking the rules of some other Guilds, it's advisable to complete a full quest line at the time, and it's not a bad idea to leave the Thieves Guild and Dark Brotherhood for last.