Moved shutdown() to GenBehavior