add daemon support for tornado app