For whoever gets the same problem following code was wrong (Thanks to @tyg for finding)
flow<T?> {
try {
emit("Value")
} catch (e: Exception) {
println("Something went wrong ${e.message}")
}
}.firstOrNull()
In this usage CancellationException getting caught and causes the log I posted in question.
The correct usage is at below.
flow<T?> {
emit("Value")
}.catch { e ->
println("Something went wrong ${e.message}")
}.firstOrNull()