Issue5 windows support

Adds support for housekeeping functionality on Windows.