Now closing the window will end the call
Fixed merge conflicts
Fixed implicit declaration warning and merge conflict leftover
Merge pull request #174 from mannol1/master

Make closing window end call