Cleanup + dependency injection for sms gateway