system environment judgment in apn_close()
Merge pull request #4 from pangee/master

system environment judgment in apn_close()