How can I avoid having my Lambda function go into an inactive state?