Formation of freely floating sub-stellar objects via close encounters