Fixed exception handling, added terminal scrolling