tscalr main function tries to end prematurely