You should have known you were beat on the flop. What could you really beat? a bluff? The only thing that makes your hand somewhat justifiable is the queen on the river which was going to help you anyways. Keep your head up bro.