Exitcode and backup

I need those two features:
1. Exiting with non-zero exitcode on fail for reporting to syslog about the fail
2. Backing up the last .scrobbler.log before clearing it for the strange situations, when last.fm silently doesn't update scrobbling history without returning any error.
Thanks.