Add process.waitFor() and process.destroy() to getLogcat() method