don't crash when an error happens while connecting and the packet_context isn't inpla...