Cleaning in streamhandler