Parsing cli args & cleanup