Treat a modern smartphone as you would a laptop. Run it through the proper process before removing the battery, like you would if you were shutting down a Windows Laptop for instance. Just pulling the battery or incorrectly shutting down can lead to OS corruption and more problems than it's worth.
Though sometimes this is unavoidable as you might get a complete freeze but that would be an exceptional circumstance and the OS will most likely already be in a loop so a battery pull or aggressive power down is required.
In your case, power down properly first
