Removed halt statement in debug mode