its only a matter of time before this snake dies

If you remember his criticism directed at shabshab over kismayo port then you will understand why he had no choice but to join them.
They must have threatened him to cutt off hands of his family,and execute some for apostacy while giving him poison.