Fixed issue with parser not exiting upon completion