Remove line of code that is causing robots.txt to be gzipped twice.
Try adding drupal_exit.