Error handler for fs streams