'Mischievous' judge bids farewell to court with middle finger salute