Fixed shutdown on Windows and added shutdownInternal on Platform.
Merge pull request #763 from seanpaultaylor/next

Fixed shutdown on Windows and added shutdownInternal on Platform.