Fix frontend to delete user on connection end.