Enhance input query parsing to handle new lines.
Process is automatically shut down.