Posting an error with the object lock will deadlock. Rework the code a bit to make things more simple.