php: try catch / error freezes server script

I am running a cronjob script which completely freezes within a try / catch statement (which is inside a while loop). The catch phrase is working as it's logging the error (which i put there) but then it freezes completely without any output. after that i only put echo "error"; inside the catch pharse but it does not output and freezes again. when adding die; it prompts and the script stops as expected - but i want to catch the error and continue the script.

while($rs = $res->fetch_assoc())
{

    try
    {
        $rc = new c_movie();
        $result = $rc->search();

    } catch(Throwable $t)
    {
        echo "ERROR!!!!";  // freezing here, does not echo
    }

}

any idea what could be causing the script to freeze? thanks