Something went wrong with the fermentation process of my most recent batch. So about two days after I pitched the yeast, my airlock blew off from such a vigorous fermentation. I attached a blow off tube and it seemed to ferment well as time went on. I checked the gravity about 7 days after brew day, it was a few points off but it the finished beer section. I assumed give it a while more and then rack to secondary. When I went to check FG agian and it read close to 1 (Above the finished beer margin and way off from my intended FG of 1.012). It also tasted very sweet, obviously it did not ferment well or got infected or something. What went wrong? I just want to know what I did wrong so I don't ruin another batch. Thanks.