moved monitoring_thread#terminate into socket#close
Merge pull request #3 from ThomasAlxDmy/linux-cancel-blocking-read-issue

moved monitoring_thread#terminate into socket#close