Merge pull request #105 from pitr-ch/master

Ensure DB connection clean up
Check that action's in/output is serializable, error the action when not