Somalia braces for war as talks end