Cleanup debug and output messages