unpin argparse, option to not reconnect, safer close()