Merge "Close logging statement when stopping user"