Was segfaulting on halt command, fixed