Using vnotify() for die()
Adding use_ssl to mg_connect()