clean up logs command handler