The end of the prompt emission within the fireshell model