Don't write headers after they were already sent