Set headers and exit with JApplication