add shutdown handler for akka
handle akka exit