[ticket/11603] Throw RuntimeExceptions instead of using exit()

PHPBB3-11603