Added enableAccessLog() method.
Close controller class after use.