Using writeStream for proxy log
Setting startProxy flag
Changing method to end
Adding debug statement
Fix for proxy logs
Fixing error msg
Refactoring
Fixing merge conflicts