Imran leaves court after all possibilities of arrest eliminated