Issue with op5

Works fine when I run it from the nagos plugin folder and when I test the service in Op5. But when I save it in Op5, the next scheduled service fails:
CRITICAL SMB Sharename: SHARENAME session setup failed: NT_STATUS_LOGON_FAILURE