Stop random exits, echo only in router.php

Remove exits from different places, echo only in router.php