Improve the grammar in the following sentence.
But before I left there, unfortunately bad accident happened around me.
But before I left the company there, unfortunately, a bad accident happened around me.