printing the last few missing lines in console output