Stellar encounters in the Galactic center - formation of massive stars and close binaries