Problem: receive methods don't handle interrupt

Solution: if msg is NULL, return and don't process it further.