Added logging of PHP errors and unhandled exceptions, also added support for return codes from CLI applications