changed exit() to drupal_exit()