source-reader: rewrite destroyReader for better readability

Use if-block instead of flatMap to increase readability.