Implement graceful shutdown in golang rendler