Fixed a bug where the http connection was not getting closed.
Added file logging for express.