added sys exit on failed file load