Cleaned up the windows signal handling area and added to it a bit.