terminate moneta server if sigterm is received

[ci skip]
fix server error handling

[ci skip]