fixed potential E_NOTICE bug; load error service
added context settings to build.transport; load error service; session close on die
get error service when initializing modx