Fixed hang when receiving random FIN packets; main now has infinite loop