Replication manager changes

Please also include the exception variable 'e' as the last argument so we can see the details from that.