I had to harmonize a piece in E major with a given melody. The image below shows the end of the piece, with my harmonization. [![enter image description here][1]][1]
Normally, I would write the first beat of the second-to-last bar as B in the bass, B in the tenor, D# in the alto, and F# in the soprano, i.e. the Vth chord of E major. 

But, does it make any sense to write the chord depicted in the image, instead of the standard V chord? Does it have a name? To my ear, it sounds like a cadential 6/4 chord, but I think it's not, since it contains F# and not G#. Can I have this form of cadence, or, is this a way to end the piece?

Thank you in advance, and have a happy New Year!


  [1]: https://i.sstatic.net/0dLbU.png