akka/akka — pull request #1512 by viktorklang (2013-05-30 19:25:35+00:00)
Title:  #3286 - PoisonPill instead of Terminate + endpoint cleanup

Switching to PoisonPill could make a difference for queued messages.
Since I have no way to reproduce I'm stabbing westwards...

Also cleaned up a bit of var-twiddling