Move interrupt handling into readline
Refactor error handling into separate methods