switched to using pause instead of close for suspending readline