Fixed bug when doing unreg of unknown pid.
Added error_logger defines.
Get correct application environment.
Moved start of can_udp.
Added error_logger defines.