implement the logout funciton in the doctrine user manager