Abstract out listen directive, cleanup logs