I have a module that has the behavior of gen_fsm. Right now I am terminating it by returning the standard {stop, Reason, State} in an appropriate state/message.
It seems to terminate correctly, but it's considered an error during runtime.
Is this normal? Is there a way to stop the fsm process without it being considered an error?