fixed exit in Scala actor