shonky is right. If the process uses too much resource, it will be killed by DH. This is to protect the reliability on a shared server. You may want to contact DH support or refer to wiki for more information.
I think the problem occurs on most of the shared servers. If you wanna host this kind of program, you may consider to have a dedicated server or look for a server provider which does not restrict heavy processes.
Save [color=#CC0000]$97[/color] (max discount) on dreamhost plans by using promo code: [color=#CC0000]97CRAZY[/color].