Limit port number to sane number
Temporarely disabled old releases cleanup.
Commented out unnecessary dir creation code in deploy. Cleanup
Try flush, writeonly and disable unbuffered mode for writeToFile.