Made sure that illegal use of receive throws exceptions