rebooting SXT lite5 with api

Hi, I am trying to send /system/reboot with php api but it seems command not ending it continues after reboot operation as well I dont get anything back from php script and sometimes it doesnt do reboot operation either. API user has full permissions I useRouterOS PHP API class v1.6 ,Denis Basta, does anyone had the same issue before if yes please help me to sort it out

Thanks in advance