modify input handling to hopefully resolve issues with NEI / gui
closing.  Closes #82