Problem: receive methods don't handle interrupt

Solution: if msg is NULL, return and don't process it further.
Merge pull request #110 from hintjens/master

Problem: receive methods don't handle interrupt