Removing Halt and using System.exit for halt function