User controller and close connection