exit() to drupal_exit() and fix function notices_load_ajax().