Tail script now block execution until there's data available on the script's output stream. Running commands are also being terminated properly.