Welcome to Android Central! Which phone? Unplugging the phone typically would not cause it to shut down, unless the battery was near zero to begin with, or unless the battery was failing. Are you saying the phone completely shut down immediately after you unplugged it?